<div class="admin">
    <form method="post" name="myform" id="myform" action="">
        
        <div class="tab panel dux-tab admin-panel">
            <div class="panel-head">
                <div class="tab-head">
                <strong>运费模版列表</strong>
            <ul class="tab-nav">
                <li class="active"><a href="{:U('add')}">添加模版</a></li>
            </ul>
                </div>
            </div>
        </div>
        
        <table class="table table-hover">
            <tr>
                <th width='4%'>方式</th>
                <th width='56%'>运送到</th>
                <th width='10%'>首件(个)</th>
                <th width='10%'>运费(元)</th>
                <th width='10%'>续件(个)</th>
                <th width='10%'>运费(元)</th>
            </tr>
        </table>
        <notempty name='list'>
            <foreach item='v' name='list'>
                <div class="panel admin-panel">
                    <div class="panel-head">
                        <strong>{$v['title']}</strong>
                        <span><a class="button bg-blue button-little" href="{:U('edit',array('id'=>$v['id']))}" title="编辑"><i class="icon-edit"></i>编辑</a></span>
                        <span><a class="button bg-red button-little js-del" data="{$v['id']}" href="javascript:;" title="删除"><i class="icon-minus-circle"></i>删除</a></span>
                    </div>
                    <table class="table table-hover">
                        <foreach item='m' name="v['trans']">
                            <tr>
                                <td width='4%'>{$m['title']}</td>
                                <td width='56%'>{$m['area_name']}</td>
                                <td width='10%'>{$m['snum']}</td>
                                <td width='10%'>{$m['sprice']}</td>
                                <td width='10%'>{$m['xnum']}</td>
                                <td width='10%'>{$m['xprice']}</td>
                            </tr>
                        </foreach>
                    </table> 

                </div>
                <div class="line15"></div>
            </foreach>
        </notempty>

    </form>
</div>
<script type="text/javascript">
    $('#myform').layer({
        actionUrl: "batchAction",
        deleteUrl: "del",
        cancelUrl: "cannel",
    });
</script>